/*    
 * Copyright (c) 2013 ISoftStone, Inc.
 * All right reserved.
 *
 * 文件名：      BillItemServiceImpl.java
 * 作者:     Jacky Wang
 * 创建日期： 2013-7-29 下午04:51:10
 * 版本：           
 *
 */
package com.isoftstone.industry.aaa.core.service.assist.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.isoftstone.industry.persistance.bean.AccountItem;
import com.isoftstone.industry.persistance.bean.BillItem;
import com.isoftstone.industry.aaa.core.dao.assist.BillItemDao;
import com.isoftstone.industry.aaa.core.service.assist.IBillItemService;
import com.isoftstone.modules.core.persistence.IGenericDao;
import com.isoftstone.modules.core.service.impl.GenericServiceImpl;

/**
 *
 * @author jacky
 */
@Service
public class BillItemServiceImpl extends GenericServiceImpl<BillItem, String> implements IBillItemService
{
	@Resource
	private BillItemDao billItemDao;
	
	@Override
	public IGenericDao<BillItem, String> getDao()
	{
		return billItemDao;
	}

	@Override
	public List<BillItem> findNeedPaidItems(String billId)
	{
		return billItemDao.findByBillAndPayableGreaterThan0(billId, AccountItem.Status.NON_CHARGE_OFF);
	}

}
